//
//  LEStaffDetialIdentifyCardCell.m
//  LoveExpressBusiness
//
//  Created by 刘甲奇 on 2017/5/10.
//  Copyright © 2017年 DFH. All rights reserved.
//

#import "LEStaffDetialIdentifyCardCell.h"
#import "UIImageView+WebCache.h"

@interface LEStaffDetialIdentifyCardCell()
@property (weak, nonatomic) IBOutlet UILabel *identifCardLabel;
@property (weak, nonatomic) IBOutlet UILabel *healthCardNumberLabel;
@property (weak, nonatomic) IBOutlet UIImageView *identifyCardIV;
@property (weak, nonatomic) IBOutlet UIImageView *identifyCardIV1;
@property (weak, nonatomic) IBOutlet UIImageView *healthCardIV;
/**
 <#Description#>
 */
@property(nonatomic,strong)identifyCardCellBlock block;
@end
@implementation LEStaffDetialIdentifyCardCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (void)setModel:(LEStaffDetialModel *)model
{
    self.identifCardLabel.text = model.service_card;
    self.healthCardNumberLabel.text = model.service_health_id;
    [self.identifyCardIV sd_setImageWithURL:[NSURL URLWithString:model.s_card_photo_main]];
    [self.identifyCardIV1 sd_setImageWithURL:[NSURL URLWithString:model.s_card_photo_back]];
    [self.healthCardIV sd_setImageWithURL:[NSURL URLWithString:model.s_health_photo]];

}
- (void)identifyCardCellClick:(identifyCardCellBlock)block
{
    _block = block;
}
- (IBAction)cardButtonClick01:(UIButton *)sender {
    _block(self.identifyCardIV.image);
}
- (IBAction)cardButtonClick02:(UIButton *)sender {
     _block(self.identifyCardIV1.image);
}
- (IBAction)healthyButtonClick:(UIButton *)sender {
    _block(self.healthCardIV.image);
}


@end
